
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Camera</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><strong>gphoto2.Camera</strong> = <a name="gphoto2.Camera">class Camera</a>(__builtin__.SwigPyObject)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>::_Camera<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>Camera</dd>
<dd>__builtin__.SwigPyObject</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Camera-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__eq__">__eq__</a>(y)&nbsp;&lt;==&gt;&nbsp;x==y</tt></dd></dl>

<dl><dt><a name="Camera-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__ge__">__ge__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&gt;=y</tt></dd></dl>

<dl><dt><a name="Camera-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__gt__">__gt__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&gt;y</tt></dd></dl>

<dl><dt><a name="Camera-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;help(type(x))&nbsp;for&nbsp;signature</tt></dd></dl>

<dl><dt><a name="Camera-__le__"><strong>__le__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__le__">__le__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&lt;=y</tt></dd></dl>

<dl><dt><a name="Camera-__lt__"><strong>__lt__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__lt__">__lt__</a>(y)&nbsp;&lt;==&gt;&nbsp;x&lt;y</tt></dd></dl>

<dl><dt><a name="Camera-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__ne__">__ne__</a>(y)&nbsp;&lt;==&gt;&nbsp;x!=y</tt></dd></dl>

<dl><dt><a name="Camera-capture"><strong>capture</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-capture">capture</a>(CameraCaptureType&nbsp;type,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Captures&nbsp;an&nbsp;image,&nbsp;movie,&nbsp;or&nbsp;sound&nbsp;clip&nbsp;depending&nbsp;on&nbsp;the&nbsp;given&nbsp;`type`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`type`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraCaptureType&nbsp;&nbsp;<br>
*&nbsp;`path`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraFilePath&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
The&nbsp;resulting&nbsp;file&nbsp;will&nbsp;be&nbsp;stored&nbsp;on&nbsp;the&nbsp;camera.&nbsp;The&nbsp;location&nbsp;gets<br>
stored&nbsp;in&nbsp;`path`.&nbsp;The&nbsp;file&nbsp;can&nbsp;then&nbsp;be&nbsp;downloaded&nbsp;using<br>
gp_camera_file_get.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_capture</tt></dd></dl>

<dl><dt><a name="Camera-capture_preview"><strong>capture_preview</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-capture_preview">capture_preview</a>(Context&nbsp;context)<br>
&nbsp;<br>
Captures&nbsp;a&nbsp;preview&nbsp;that&nbsp;won't&nbsp;be&nbsp;stored&nbsp;on&nbsp;the&nbsp;camera&nbsp;but&nbsp;returned&nbsp;in<br>
supplied&nbsp;file.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraFile&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
For&nbsp;example,&nbsp;you&nbsp;could&nbsp;use&nbsp;gp_capture_preview()&nbsp;for&nbsp;taking&nbsp;some&nbsp;sample<br>
pictures&nbsp;before&nbsp;calling&nbsp;gp_capture().<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_capture_preview</tt></dd></dl>

<dl><dt><a name="Camera-exit"><strong>exit</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-exit">exit</a>(Context&nbsp;context)<br>
&nbsp;<br>
Close&nbsp;connection&nbsp;to&nbsp;camera.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;object&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;object&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code.&nbsp;&nbsp;<br>
&nbsp;<br>
Closes&nbsp;a&nbsp;connection&nbsp;to&nbsp;the&nbsp;camera&nbsp;and&nbsp;therefore&nbsp;gives&nbsp;other&nbsp;application<br>
the&nbsp;possibility&nbsp;to&nbsp;access&nbsp;the&nbsp;camera,&nbsp;too.&nbsp;&nbsp;<br>
&nbsp;<br>
It&nbsp;is&nbsp;recommended&nbsp;that&nbsp;you&nbsp;call&nbsp;this&nbsp;function&nbsp;when&nbsp;you&nbsp;currently&nbsp;don't<br>
need&nbsp;the&nbsp;camera.&nbsp;The&nbsp;camera&nbsp;will&nbsp;get&nbsp;reinitialized&nbsp;by&nbsp;gp_camera_init()<br>
automatically&nbsp;if&nbsp;you&nbsp;try&nbsp;to&nbsp;access&nbsp;the&nbsp;camera&nbsp;again.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_exit</tt></dd></dl>

<dl><dt><a name="Camera-file_delete"><strong>file_delete</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-file_delete">file_delete</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;file,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Deletes&nbsp;the&nbsp;file&nbsp;from&nbsp;`folder`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;file&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_file_delete</tt></dd></dl>

<dl><dt><a name="Camera-file_get"><strong>file_get</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-file_get">file_get</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;file,&nbsp;CameraFileType&nbsp;type,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Retrieves&nbsp;a&nbsp;file&nbsp;from&nbsp;the&nbsp;Camera.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;file&nbsp;&nbsp;<br>
*&nbsp;`type`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;CameraFileType&nbsp;&nbsp;<br>
*&nbsp;`camera_file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraFile&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_file_get</tt></dd></dl>

<dl><dt><a name="Camera-file_get_info"><strong>file_get_info</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-file_get_info">file_get_info</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;file,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Retrieves&nbsp;information&nbsp;about&nbsp;a&nbsp;file.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;file&nbsp;&nbsp;<br>
*&nbsp;`info`&nbsp;:&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_file_get_info</tt></dd></dl>

<dl><dt><a name="Camera-file_read"><strong>file_read</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-file_read">file_read</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;file,&nbsp;CameraFileType&nbsp;type,&nbsp;uint64_t&nbsp;offset,&nbsp;char&nbsp;*&nbsp;buf,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Reads&nbsp;a&nbsp;file&nbsp;partially&nbsp;from&nbsp;the&nbsp;Camera.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;file&nbsp;&nbsp;<br>
*&nbsp;`type`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;CameraFileType&nbsp;&nbsp;<br>
*&nbsp;`offset`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;offset&nbsp;into&nbsp;the&nbsp;camera&nbsp;file&nbsp;&nbsp;<br>
*&nbsp;`data`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;buffer&nbsp;receiving&nbsp;the&nbsp;data&nbsp;&nbsp;<br>
*&nbsp;`size`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;size&nbsp;to&nbsp;be&nbsp;read&nbsp;and&nbsp;that&nbsp;was&nbsp;read.&nbsp;(Note:&nbsp;size&nbsp;should&nbsp;not&nbsp;exceed<br>
&nbsp;&nbsp;&nbsp;&nbsp;32&nbsp;bits)&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_file_read</tt></dd></dl>

<dl><dt><a name="Camera-file_set_info"><strong>file_set_info</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-file_set_info">file_set_info</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;file,&nbsp;CameraFileInfo&nbsp;info,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Sets&nbsp;some&nbsp;file&nbsp;properties&nbsp;like&nbsp;name&nbsp;or&nbsp;permissions.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;file&nbsp;&nbsp;<br>
*&nbsp;`info`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;CameraFileInfo&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_file_set_info</tt></dd></dl>

<dl><dt><a name="Camera-folder_delete_all"><strong>folder_delete_all</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-folder_delete_all">folder_delete_all</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Deletes&nbsp;all&nbsp;files&nbsp;in&nbsp;a&nbsp;given&nbsp;`folder`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_folder_delete_all</tt></dd></dl>

<dl><dt><a name="Camera-folder_list_files"><strong>folder_list_files</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-folder_list_files">folder_list_files</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Lists&nbsp;the&nbsp;files&nbsp;in&nbsp;supplied&nbsp;`folder`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`list`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraList&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_folder_list_files</tt></dd></dl>

<dl><dt><a name="Camera-folder_list_folders"><strong>folder_list_folders</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-folder_list_folders">folder_list_folders</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Lists&nbsp;the&nbsp;folders&nbsp;in&nbsp;supplied&nbsp;`folder`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`list`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraList&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_folder_list_folders</tt></dd></dl>

<dl><dt><a name="Camera-folder_make_dir"><strong>folder_make_dir</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-folder_make_dir">folder_make_dir</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;name,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Creates&nbsp;a&nbsp;new&nbsp;directory&nbsp;called&nbsp;`name`&nbsp;in&nbsp;the&nbsp;given&nbsp;`folder`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;location&nbsp;where&nbsp;to&nbsp;create&nbsp;the&nbsp;new&nbsp;directory&nbsp;&nbsp;<br>
*&nbsp;`name`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;directory&nbsp;to&nbsp;be&nbsp;created&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_folder_make_dir</tt></dd></dl>

<dl><dt><a name="Camera-folder_put_file"><strong>folder_put_file</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-folder_put_file">folder_put_file</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;filename,&nbsp;CameraFileType&nbsp;type,&nbsp;CameraFile&nbsp;file,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Uploads&nbsp;a&nbsp;file&nbsp;into&nbsp;given&nbsp;`folder`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;folder&nbsp;&nbsp;<br>
*&nbsp;`file`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraFile&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_folder_put_file</tt></dd></dl>

<dl><dt><a name="Camera-folder_remove_dir"><strong>folder_remove_dir</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-folder_remove_dir">folder_remove_dir</a>(char&nbsp;const&nbsp;*&nbsp;folder,&nbsp;char&nbsp;const&nbsp;*&nbsp;name,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Removes&nbsp;an&nbsp;(empty)&nbsp;directory&nbsp;called&nbsp;`name`&nbsp;from&nbsp;the&nbsp;given&nbsp;`folder`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`folder`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;folder&nbsp;from&nbsp;which&nbsp;to&nbsp;remove&nbsp;the&nbsp;directory&nbsp;&nbsp;<br>
*&nbsp;`name`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;directory&nbsp;to&nbsp;be&nbsp;removed&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_folder_remove_dir</tt></dd></dl>

<dl><dt><a name="Camera-get_abilities"><strong>get_abilities</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_abilities">get_abilities</a>()<br>
&nbsp;<br>
Retrieve&nbsp;the&nbsp;`abilities`&nbsp;of&nbsp;the&nbsp;`camera`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`abilities`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_abilities</tt></dd></dl>

<dl><dt><a name="Camera-get_about"><strong>get_about</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_about">get_about</a>(Context&nbsp;context)<br>
&nbsp;<br>
Retrieves&nbsp;information&nbsp;about&nbsp;the&nbsp;camera&nbsp;driver.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`about`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraText&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
Typically,&nbsp;this&nbsp;information&nbsp;contains&nbsp;name&nbsp;and&nbsp;address&nbsp;of&nbsp;the&nbsp;author,<br>
acknowledgements,&nbsp;etc.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_about</tt></dd></dl>

<dl><dt><a name="Camera-get_config"><strong>get_config</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_config">get_config</a>(Context&nbsp;context)<br>
&nbsp;<br>
Retrieve&nbsp;a&nbsp;configuration&nbsp;`window`&nbsp;for&nbsp;the&nbsp;`camera`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`window`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraWidget&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;`window`&nbsp;can&nbsp;be&nbsp;used&nbsp;for&nbsp;construction&nbsp;of&nbsp;a&nbsp;configuration&nbsp;dialog.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_config</tt></dd></dl>

<dl><dt><a name="Camera-get_manual"><strong>get_manual</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_manual">get_manual</a>(Context&nbsp;context)<br>
&nbsp;<br>
Retrieves&nbsp;the&nbsp;`manual`&nbsp;for&nbsp;given&nbsp;`camera`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`manual`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraText&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;manual&nbsp;typically&nbsp;contains&nbsp;information&nbsp;about&nbsp;using&nbsp;the&nbsp;camera.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_manual</tt></dd></dl>

<dl><dt><a name="Camera-get_port_info"><strong>get_port_info</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_port_info">get_port_info</a>()<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_port_info</tt></dd></dl>

<dl><dt><a name="Camera-get_port_speed"><strong>get_port_speed</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_port_speed">get_port_speed</a>()&nbsp;-&gt;&nbsp;int<br>
&nbsp;<br>
Retrieve&nbsp;the&nbsp;current&nbsp;speed.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
The&nbsp;current&nbsp;speed&nbsp;or&nbsp;a&nbsp;gphoto2&nbsp;error&nbsp;code<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_port_speed</tt></dd></dl>

<dl><dt><a name="Camera-get_single_config"><strong>get_single_config</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_single_config">get_single_config</a>(char&nbsp;const&nbsp;*&nbsp;name,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Retrieve&nbsp;a&nbsp;single&nbsp;configuration&nbsp;`widget`&nbsp;for&nbsp;the&nbsp;`camera`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`name`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;configuration&nbsp;widget&nbsp;&nbsp;<br>
*&nbsp;`widget`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraWidget&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;`widget`&nbsp;will&nbsp;then&nbsp;contain&nbsp;the&nbsp;current&nbsp;and&nbsp;the&nbsp;possible&nbsp;values&nbsp;and<br>
the&nbsp;type.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_single_config</tt></dd></dl>

<dl><dt><a name="Camera-get_storageinfo"><strong>get_storageinfo</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_storageinfo">get_storageinfo</a>(Context&nbsp;context)<br>
&nbsp;<br>
Gets&nbsp;information&nbsp;on&nbsp;the&nbsp;camera&nbsp;attached&nbsp;storage.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`sifs`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;Pointer&nbsp;to&nbsp;receive&nbsp;a&nbsp;pointer&nbsp;to/array&nbsp;of&nbsp;storage&nbsp;info&nbsp;items&nbsp;&nbsp;<br>
*&nbsp;`nrofsifs`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;Pointer&nbsp;to&nbsp;receive&nbsp;number&nbsp;of&nbsp;array&nbsp;entries&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
Retrieves&nbsp;the&nbsp;storage&nbsp;information,&nbsp;like&nbsp;maximum&nbsp;and&nbsp;free&nbsp;space,&nbsp;for&nbsp;the<br>
specified&nbsp;filesystem,&nbsp;if&nbsp;supported&nbsp;by&nbsp;the&nbsp;device.&nbsp;The&nbsp;storage<br>
information&nbsp;is&nbsp;returned&nbsp;in&nbsp;an&nbsp;newly&nbsp;allocated&nbsp;array&nbsp;of<br>
CameraStorageInformation&nbsp;objects,&nbsp;to&nbsp;which&nbsp;the&nbsp;pointer&nbsp;pointed&nbsp;to&nbsp;by<br>
#sifs&nbsp;will&nbsp;be&nbsp;set.&nbsp;&nbsp;<br>
&nbsp;<br>
The&nbsp;variable&nbsp;pointed&nbsp;to&nbsp;by&nbsp;#nrofsifs&nbsp;will&nbsp;be&nbsp;set&nbsp;to&nbsp;the&nbsp;number&nbsp;of<br>
elements&nbsp;in&nbsp;that&nbsp;array.&nbsp;&nbsp;<br>
&nbsp;<br>
It&nbsp;is&nbsp;the&nbsp;caller's&nbsp;responsibility&nbsp;to&nbsp;free&nbsp;the&nbsp;memory&nbsp;of&nbsp;the&nbsp;array.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_storageinfo</tt></dd></dl>

<dl><dt><a name="Camera-get_summary"><strong>get_summary</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-get_summary">get_summary</a>(Context&nbsp;context)<br>
&nbsp;<br>
Retrieves&nbsp;a&nbsp;camera&nbsp;summary.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`summary`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraText&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;summary&nbsp;typically&nbsp;contains&nbsp;information&nbsp;like&nbsp;manufacturer,&nbsp;pictures<br>
taken,&nbsp;or&nbsp;generally&nbsp;information&nbsp;that&nbsp;is&nbsp;not&nbsp;configurable.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_get_summary</tt></dd></dl>

<dl><dt><a name="Camera-init"><strong>init</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-init">init</a>(Context&nbsp;context)<br>
&nbsp;<br>
Initiate&nbsp;a&nbsp;connection&nbsp;to&nbsp;the&nbsp;`camera`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
Before&nbsp;calling&nbsp;this&nbsp;function,&nbsp;the&nbsp;`camera`&nbsp;should&nbsp;be&nbsp;set&nbsp;up&nbsp;using<br>
gp_camera_set_port_path()&nbsp;or&nbsp;gp_camera_set_port_name()&nbsp;and<br>
gp_camera_set_abilities().&nbsp;If&nbsp;that&nbsp;has&nbsp;been&nbsp;omitted,&nbsp;gphoto2&nbsp;tries&nbsp;to<br>
autodetect&nbsp;any&nbsp;cameras&nbsp;and&nbsp;chooses&nbsp;the&nbsp;first&nbsp;one&nbsp;if&nbsp;any&nbsp;cameras&nbsp;are<br>
found.&nbsp;It&nbsp;is&nbsp;generally&nbsp;a&nbsp;good&nbsp;idea&nbsp;to&nbsp;call&nbsp;gp_camera_exit()&nbsp;after<br>
transactions&nbsp;have&nbsp;been&nbsp;completed&nbsp;in&nbsp;order&nbsp;to&nbsp;give&nbsp;other&nbsp;applications&nbsp;the<br>
chance&nbsp;to&nbsp;access&nbsp;the&nbsp;camera,&nbsp;too.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_init</tt></dd></dl>

<dl><dt><a name="Camera-list_config"><strong>list_config</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-list_config">list_config</a>(Context&nbsp;context)<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_list_config</tt></dd></dl>

<dl><dt><a name="Camera-set_abilities"><strong>set_abilities</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-set_abilities">set_abilities</a>(CameraAbilities&nbsp;abilities)<br>
&nbsp;<br>
Sets&nbsp;the&nbsp;camera&nbsp;abilities.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`abilities`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;CameraAbilities&nbsp;to&nbsp;be&nbsp;set&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
You&nbsp;need&nbsp;to&nbsp;call&nbsp;this&nbsp;function&nbsp;before&nbsp;calling&nbsp;gp_camera_init&nbsp;the&nbsp;first<br>
time&nbsp;unless&nbsp;you&nbsp;want&nbsp;gphoto2&nbsp;to&nbsp;autodetect&nbsp;cameras&nbsp;and&nbsp;choose&nbsp;the&nbsp;first<br>
detected&nbsp;one.&nbsp;By&nbsp;setting&nbsp;the&nbsp;`abilities`,&nbsp;you&nbsp;tell&nbsp;gphoto2&nbsp;what&nbsp;model<br>
the&nbsp;`camera`&nbsp;is&nbsp;and&nbsp;what&nbsp;camera&nbsp;driver&nbsp;should&nbsp;be&nbsp;used&nbsp;for&nbsp;accessing&nbsp;the<br>
`camera`.&nbsp;You&nbsp;can&nbsp;get&nbsp;`abilities`&nbsp;by&nbsp;calling<br>
gp_abilities_list_get_abilities.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_set_abilities</tt></dd></dl>

<dl><dt><a name="Camera-set_config"><strong>set_config</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-set_config">set_config</a>(CameraWidget&nbsp;window,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Sets&nbsp;the&nbsp;configuration.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`window`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraWidget&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
Typically,&nbsp;a&nbsp;`window`&nbsp;is&nbsp;retrieved&nbsp;using&nbsp;gp_camera_get_config&nbsp;and&nbsp;passed<br>
to&nbsp;this&nbsp;function&nbsp;in&nbsp;order&nbsp;to&nbsp;adjust&nbsp;the&nbsp;settings&nbsp;on&nbsp;the&nbsp;camera.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_set_config</tt></dd></dl>

<dl><dt><a name="Camera-set_port_info"><strong>set_port_info</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-set_port_info">set_port_info</a>(GPPortInfo&nbsp;info)<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_set_port_info</tt></dd></dl>

<dl><dt><a name="Camera-set_port_speed"><strong>set_port_speed</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-set_port_speed">set_port_speed</a>(int&nbsp;speed)<br>
&nbsp;<br>
Set&nbsp;the&nbsp;camera&nbsp;speed.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`speed`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;speed&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;function&nbsp;is&nbsp;typically&nbsp;used&nbsp;prior&nbsp;first&nbsp;initialization&nbsp;using<br>
gp_camera_init&nbsp;for&nbsp;debugging&nbsp;purposes.&nbsp;Normally,&nbsp;a&nbsp;camera&nbsp;driver&nbsp;will<br>
try&nbsp;to&nbsp;figure&nbsp;out&nbsp;the&nbsp;current&nbsp;speed&nbsp;of&nbsp;the&nbsp;camera&nbsp;and&nbsp;set&nbsp;the&nbsp;speed&nbsp;to<br>
the&nbsp;optimal&nbsp;one&nbsp;automatically.&nbsp;Note&nbsp;that&nbsp;this&nbsp;function&nbsp;only&nbsp;works&nbsp;with<br>
serial&nbsp;ports.&nbsp;In&nbsp;other&nbsp;words,&nbsp;you&nbsp;have&nbsp;to&nbsp;set&nbsp;the&nbsp;camera's&nbsp;port&nbsp;to&nbsp;a<br>
serial&nbsp;one&nbsp;(using&nbsp;#gp_camera_set_port_path&nbsp;or&nbsp;#gp_camera_set_port_name)<br>
prior&nbsp;calling&nbsp;this&nbsp;function.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_set_port_speed</tt></dd></dl>

<dl><dt><a name="Camera-set_single_config"><strong>set_single_config</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-set_single_config">set_single_config</a>(char&nbsp;const&nbsp;*&nbsp;name,&nbsp;CameraWidget&nbsp;widget,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Set&nbsp;a&nbsp;single&nbsp;configuration&nbsp;`widget`&nbsp;for&nbsp;the&nbsp;`camera`.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`name`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;configuration&nbsp;widget&nbsp;&nbsp;<br>
*&nbsp;`widget`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;CameraWidget&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;`widget`&nbsp;contains&nbsp;the&nbsp;new&nbsp;value&nbsp;of&nbsp;the&nbsp;widget&nbsp;to&nbsp;set.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_set_single_config</tt></dd></dl>

<dl><dt><a name="Camera-trigger_capture"><strong>trigger_capture</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-trigger_capture">trigger_capture</a>(Context&nbsp;context)<br>
&nbsp;<br>
Triggers&nbsp;capture&nbsp;of&nbsp;one&nbsp;or&nbsp;more&nbsp;images.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
a&nbsp;gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;functions&nbsp;just&nbsp;remotely&nbsp;causes&nbsp;the&nbsp;shutter&nbsp;release&nbsp;and&nbsp;returns<br>
immediately.&nbsp;You&nbsp;will&nbsp;want&nbsp;to&nbsp;run&nbsp;#gp_camera_wait_event&nbsp;until&nbsp;a&nbsp;image&nbsp;is<br>
added&nbsp;which&nbsp;can&nbsp;be&nbsp;downloaded&nbsp;using&nbsp;gp_camera_file_get.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_trigger_capture</tt></dd></dl>

<dl><dt><a name="Camera-wait_for_event"><strong>wait_for_event</strong></a>(...)</dt><dd><tt><a href="#gphoto2.Camera-wait_for_event">wait_for_event</a>(int&nbsp;timeout,&nbsp;Context&nbsp;context)<br>
&nbsp;<br>
Wait&nbsp;and&nbsp;retrieve&nbsp;an&nbsp;event&nbsp;from&nbsp;the&nbsp;camera.&nbsp;&nbsp;<br>
&nbsp;<br>
Parameters<br>
----------<br>
*&nbsp;`camera`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;Camera&nbsp;&nbsp;<br>
*&nbsp;`timeout`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;amount&nbsp;of&nbsp;time&nbsp;to&nbsp;wait&nbsp;in&nbsp;1/1000&nbsp;seconds&nbsp;&nbsp;<br>
*&nbsp;`eventtype`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;received&nbsp;CameraEventType&nbsp;[out]&nbsp;&nbsp;<br>
*&nbsp;`eventdata`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;received&nbsp;event&nbsp;specific&nbsp;data&nbsp;[out]&nbsp;&nbsp;<br>
*&nbsp;`context`&nbsp;:&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;GPContext&nbsp;&nbsp;<br>
&nbsp;<br>
Returns<br>
-------<br>
gphoto2&nbsp;error&nbsp;code&nbsp;&nbsp;<br>
&nbsp;<br>
This&nbsp;function&nbsp;blocks&nbsp;and&nbsp;waits&nbsp;for&nbsp;an&nbsp;event&nbsp;to&nbsp;come&nbsp;from&nbsp;the&nbsp;camera.&nbsp;If<br>
a&nbsp;timeout&nbsp;occurs&nbsp;before&nbsp;an&nbsp;event&nbsp;is&nbsp;received&nbsp;then&nbsp;eventtype&nbsp;will&nbsp;be<br>
GP_EVENT_TIMEOUT&nbsp;and&nbsp;eventdata&nbsp;is&nbsp;left&nbsp;unchanged.&nbsp;&nbsp;<br>
&nbsp;<br>
If&nbsp;an&nbsp;event&nbsp;is&nbsp;received&nbsp;then&nbsp;eventtype&nbsp;is&nbsp;set&nbsp;to&nbsp;the&nbsp;type&nbsp;of&nbsp;event,&nbsp;and<br>
eventdata&nbsp;is&nbsp;set&nbsp;to&nbsp;event&nbsp;specific&nbsp;data.&nbsp;See&nbsp;the&nbsp;CameraEventType&nbsp;enum&nbsp;to<br>
see&nbsp;which&nbsp;eventtypes&nbsp;match&nbsp;to&nbsp;which&nbsp;types&nbsp;of&nbsp;eventdata.&nbsp;&nbsp;<br>
&nbsp;<br>
Note&nbsp;that&nbsp;this&nbsp;function&nbsp;will&nbsp;return&nbsp;one&nbsp;event&nbsp;after&nbsp;each&nbsp;other,&nbsp;you&nbsp;need<br>
to&nbsp;be&nbsp;able&nbsp;to&nbsp;call&nbsp;it&nbsp;multiple&nbsp;times,&nbsp;e.g.&nbsp;in&nbsp;a&nbsp;loop,&nbsp;when&nbsp;waiting&nbsp;for<br>
specific&nbsp;events.<br>
&nbsp;<br>
See&nbsp;also&nbsp;gphoto2.gp_camera_wait_for_event</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>_Camera.__dict__</tt></dd>
</dl>
<dl><dt><strong>this</strong></dt>
</dl>
<dl><dt><strong>thisown</strong></dt>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of SwigPyObjectType object&gt;<dd><tt>T.<a href="#gphoto2.Camera-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<hr>
Methods inherited from __builtin__.SwigPyObject:<br>
<dl><dt><a name="Camera-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__cmp__">__cmp__</a>(y)&nbsp;&lt;==&gt;&nbsp;cmp(x,y)</tt></dd></dl>

<dl><dt><a name="Camera-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="Camera-__hex__"><strong>__hex__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__hex__">__hex__</a>()&nbsp;&lt;==&gt;&nbsp;hex(x)</tt></dd></dl>

<dl><dt><a name="Camera-__int__"><strong>__int__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__int__">__int__</a>()&nbsp;&lt;==&gt;&nbsp;int(x)</tt></dd></dl>

<dl><dt><a name="Camera-__long__"><strong>__long__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__long__">__long__</a>()&nbsp;&lt;==&gt;&nbsp;long(x)</tt></dd></dl>

<dl><dt><a name="Camera-__oct__"><strong>__oct__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__oct__">__oct__</a>()&nbsp;&lt;==&gt;&nbsp;oct(x)</tt></dd></dl>

<dl><dt><a name="Camera-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#gphoto2.Camera-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>

<dl><dt><a name="Camera-acquire"><strong>acquire</strong></a>(...)</dt><dd><tt>acquires&nbsp;ownership&nbsp;of&nbsp;the&nbsp;pointer</tt></dd></dl>

<dl><dt><a name="Camera-append"><strong>append</strong></a>(...)</dt><dd><tt>appends&nbsp;another&nbsp;'this'&nbsp;object</tt></dd></dl>

<dl><dt><a name="Camera-disown"><strong>disown</strong></a>(...)</dt><dd><tt>releases&nbsp;ownership&nbsp;of&nbsp;the&nbsp;pointer</tt></dd></dl>

<dl><dt><a name="Camera-next"><strong>next</strong></a>(...)</dt><dd><tt>returns&nbsp;the&nbsp;next&nbsp;'this'&nbsp;object</tt></dd></dl>

<dl><dt><a name="Camera-own"><strong>own</strong></a>(...)</dt><dd><tt>returns/sets&nbsp;ownership&nbsp;of&nbsp;the&nbsp;pointer</tt></dd></dl>

</td></tr></table>
</body></html>